package com.artnology.independence.model;


public abstract class DVModelObject  {
	public static final float SCALING_FACTOR_FOR_SELECTED_ELEMENTS = 1.5f;
	private boolean currentlySelected = false;
	private String name = null;
	private DVGraphModel graphModel = null;
	


	public boolean isCurrentlySelected() {
		return currentlySelected;
	}

	public void setCurrentlySelected(boolean currentlySelected) {
		this.currentlySelected = currentlySelected;
		
	}

	public float getDrawingScalingFactor() {
		if (isCurrentlySelected()) {
			return DVModelObject.SCALING_FACTOR_FOR_SELECTED_ELEMENTS;
		}
		return 1f;
	}


	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	

	public DVModelObject(String name, DVGraphModel graphModel) {
		super();
		this.name = name;
		this.graphModel = graphModel;
		
	}

	public DVGraphModel getGraphModel() {
		return graphModel;
	}


	
	
	
	
	
	

}
